package com.dp.mallchat.common.user.controller;


import com.dp.mallchat.common.user.domain.user.enums.IdempotenceEnum;
import com.dp.mallchat.common.user.domain.user.enums.ItemEnum;
import com.dp.mallchat.common.user.service.UserBackpackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户背包表 前端控制器
 * </p>
 *
 * @author <a href="https://gitee.com/baiDP">adu</a>
 * @since 2024-06-02
 */
@RestController
@RequestMapping("/userBackpack")
public class UserBackpackController {

    @Autowired
    private UserBackpackService userBackpackService;
    public static final Long UID = 11003L;


    @GetMapping
    public void send(){
        userBackpackService.acquireItem(UID, ItemEnum.PLANET.getId(), IdempotenceEnum.UID, UID.toString());
    }

}

